]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Remove log compatibility
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Aug 2022 09:22:06 +0000 (11:22 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 10 Jul 2023 09:59:58 +0000 (09:59 +0000)
global.log() hasn't been used since 3.6. It seems extremely unlikely
that any extensions are still using it, not least because `log()` is
more convenient.

Time to move on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2830>

js/ui/main.js

index ece09131989505d0856d816140b710c21228d201..e1cc25afaabce484233a416682a04daa054f3d39 100644 (file)
@@ -169,10 +169,6 @@ function _loggingFunc(...args) {
 async function start() {
     globalThis.log = _loggingFunc;
 
-    // These are here so we don't break compatibility.
-    global.logError = globalThis.log;
-    global.log = globalThis.log;
-
     // Chain up async errors reported from C
     global.connect('notify-error', (global, msg, detail) => {
         notifyError(msg, detail);